import os, sys;

os.system("ps -u svilen > procs.txt");

f = open("procs.txt", "r");
ll = f.readlines();
for l in ll:
	l = l.split('\n')[0].split();
	if ((l[3] == "python") | (l[3] == "screen")):
		if (os.getpid() != int(l[0])):
			os.system("kill -9 "+l[0]);

f.close();
